package com.itheima.vo;

import com.itheima.domain.db.Questionnaire;
import com.itheima.domain.db.Questions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TestSoulListVo {
    private String id;
    private String name;
    private String cover;
    private String level;
    private Integer star;
    private List<TestSoulQuestionVo> questions;

    private Integer isLock = 0;
    private String reportId;

    public void setQuestionnaire(Questionnaire questionnaire) {
        this.id = String.valueOf(questionnaire.getId());
        this.name=  questionnaire.getName();
        this.cover = questionnaire.getCover();
        this.level = questionnaire.getLevel();
        this.star = questionnaire.getStar();
    }

}
